<?php
/**
 * @author Thibaut Cromphaut, Gaïtano Boeraeve, Mathias Helin, Dimitry Dierickx
 * @copyright  Copyright (c) 2011 Artevelde University College Ghent 
 */

class Application_Form_Element_TitleSelect extends Zend_Form_Element_Select
{
    public function init()
    {
        // This is the data
        $values = array('Dr.', 'Mr.', 'Mrs.', 'Ms.');
        
        // Add default option
        $this->addMultiOption('', 'Select a title');
        
        // Add the other options
        foreach ($values as $value)
            $this->addMultiOption($value, $value);
    }
}




